package com.lening.collect.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.collect.dto.MeterDTO;
import com.lening.collect.pojo.Meter;
import com.lening.collect.mapper.MeterMapper;
import com.lening.collect.service.IMeterService;
import com.lening.collect.vo.MeterVo;
import com.lening.common.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 杨军
 * @since 2024-05-31
 */
@Service
public class MeterServiceImpl extends BaseServiceImpl<MeterMapper, Meter, MeterDTO> implements IMeterService {
    @Autowired
    private MeterMapper mapper;

    @Override
    public Page<?> page(MeterDTO meterDTO) {
        return mapper.get(meterDTO);
    }

//    @Override
//    public Page<MeterVo> get(MeterDTO meterDTO) {
//        return mapper.get(meterDTO);
//    }

    @Override
    public MeterVo getById(Long id) {
        return mapper.getid(id);
    }
}
